<div class="pageContent">

    <form method="post" action="/user/update" class="pageForm required-validate"
          onsubmit="return validateCallback(this,dialogAjaxDone)">
        <input type="hidden" name="id" value="${user.id}">
        <div class="pageFormContent" layoutH="97">
            <p>
                <label style="text-align: right;">用户名：</label>
                <input type="text" name="name" value="${(user.name)!}" maxlength="20" class="required"/>
                <span class="info">&nbsp;&nbsp;必填</span>
            </p>
            <p>
                <label style="text-align: right;">年龄：</label>
                <input type="text" name="age"  value="${(user.age)!}" maxlength="20" class="required"/>
                <span class="info">&nbsp;&nbsp;必填</span>
            </p>
            <p>
                <label style="text-align: right;">Email：</label>
                <input type="text" name="email"  value="${(user.email)!} "maxlength="20" class="required"/>
                <span class="info">&nbsp;&nbsp;必填</span>
            </p>
        </div>
        <div class="formBar">
            <ul>
                <li>
                    <div class="buttonActive">
                        <div class="buttonContent">
                            <button type="submit">提交</button>
                        </div>
                    </div>
                </li>
                <li>
                    <div class="button">
                        <div class="buttonContent">
                            <button type="button" class="close">取消</button>
                        </div>
                    </div>
                </li>
            </ul>
        </div>
    </form>

</div>


<script type="text/javascript">
    function customvalidXxx(element) {
        if ($(element).val() == "xxx") return false;
        return true;
    }
</script>
